package com.example.victory.swagger.model;

import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.validation.annotation.Validated;

/**
 * 目标信息
 */
@ApiModel(description = "目标信息")
@Validated
@javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2021-04-26T10:50:39.083+08:00")

public class TargetInfo   {
  @JsonProperty("targetProject")
  private String targetProject = null;

  @JsonProperty("targetValue")
  private String targetValue = null;

  @JsonProperty("completeValue")
  private String completeValue = null;

  @JsonProperty("completeRate")
  private String completeRate = null;

  public TargetInfo targetProject(String targetProject) {
    this.targetProject = targetProject;
    return this;
  }

  /**
   * 目标项目
   * @return targetProject
  **/
  @ApiModelProperty(example = "10", value = "目标项目")


  public String getTargetProject() {
    return targetProject;
  }

  public void setTargetProject(String targetProject) {
    this.targetProject = targetProject;
  }

  public TargetInfo targetValue(String targetValue) {
    this.targetValue = targetValue;
    return this;
  }

  /**
   * 目标数值
   * @return targetValue
  **/
  @ApiModelProperty(example = "1005.01", value = "目标数值")


  public String getTargetValue() {
    return targetValue;
  }

  public void setTargetValue(String targetValue) {
    this.targetValue = targetValue;
  }

  public TargetInfo completeValue(String completeValue) {
    this.completeValue = completeValue;
    return this;
  }

  /**
   * 完成值
   * @return completeValue
  **/
  @ApiModelProperty(example = "10", value = "完成值")


  public String getCompleteValue() {
    return completeValue;
  }

  public void setCompleteValue(String completeValue) {
    this.completeValue = completeValue;
  }

  public TargetInfo completeRate(String completeRate) {
    this.completeRate = completeRate;
    return this;
  }

  /**
   * 完成比例
   * @return completeRate
  **/
  @ApiModelProperty(example = "80%", value = "完成比例")


  public String getCompleteRate() {
    return completeRate;
  }

  public void setCompleteRate(String completeRate) {
    this.completeRate = completeRate;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    TargetInfo targetInfo = (TargetInfo) o;
    return Objects.equals(this.targetProject, targetInfo.targetProject) &&
        Objects.equals(this.targetValue, targetInfo.targetValue) &&
        Objects.equals(this.completeValue, targetInfo.completeValue) &&
        Objects.equals(this.completeRate, targetInfo.completeRate);
  }

  @Override
  public int hashCode() {
    return Objects.hash(targetProject, targetValue, completeValue, completeRate);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class TargetInfo {\n");
    
    sb.append("    targetProject: ").append(toIndentedString(targetProject)).append("\n");
    sb.append("    targetValue: ").append(toIndentedString(targetValue)).append("\n");
    sb.append("    completeValue: ").append(toIndentedString(completeValue)).append("\n");
    sb.append("    completeRate: ").append(toIndentedString(completeRate)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(java.lang.Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }
}

